[IA64][HVM] Enable CGA acceleration for VTI.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 2 Jun 2006 08:20:58 +0000 (09:20 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 2 Jun 2006 08:20:58 +0000 (09:20 +0100)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
tools/ioemu/hw/cirrus_vga.c
tools/ioemu/hw/vga.c
tools/ioemu/vl.c

index 8f3ac73d2618827e440f7d4e165bf993cfc93ce6..689bbacf4d1bb46539d41b852c3b45e3c9cd4e2b 100644 (file)
@@ -2460,7 +2460,6 @@ static CPUWriteMemoryFunc *cirrus_linear_bitblt_write[3] = {
 };
 
 extern FILE *logfile;
-#if defined(__i386__) || defined (__x86_64__)
 static void * set_vram_mapping(unsigned long begin, unsigned long end)
 {
     unsigned long * extent_start = NULL;
@@ -2540,10 +2539,6 @@ static int unset_vram_mapping(unsigned long begin, unsigned long end)
     return 0;
 }
 
-#elif defined(__ia64__)
-static void * set_vram_mapping(unsigned long addr, unsigned long end) {}
-static int unset_vram_mapping(unsigned long addr, unsigned long end) {}
-#endif
 extern int vga_accelerate;
 
 /* Compute the memory access functions */
index 2d9e6449bf418e574ac9e79688da388b0a4e597c..42d4327ddb95875fe6f9b133aa640c3943cd0ff8 100644 (file)
@@ -1995,6 +1995,7 @@ void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base,
     s->get_resolution = vga_get_resolution;
     /* XXX: currently needed for display */
     vga_state = s;
+    vga_bios_init(s);
 }
 
 
@@ -2082,7 +2083,6 @@ int vga_initialize(PCIBus *bus, DisplayState *ds, uint8_t *vga_ram_base,
 #endif
     }
 
-    vga_bios_init(s);
     return 0;
 }
 
index a39ff622529500b668da7076dae49a4b3a2f41ed..2692ea5d80aa2292f11d088e3a628248119d6b1e 100644 (file)
@@ -2499,7 +2499,7 @@ int set_mm_mapping(int xc_handle,
     xc_domain_getinfo(xc_handle, domid, 1, &info);
 
     if ( xc_domain_setmaxmem(xc_handle, domid,
-                             (info.nr_pages + nr_pages) * PAGE_SIZE/1024) != 0)
+                             info.max_memkb + nr_pages * PAGE_SIZE/1024) !=0)
     {
         fprintf(logfile, "set maxmem returned error %d\n", errno);
         return -1;